﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SysMonitor
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void Form2_Load(object sender, EventArgs e)
        {
            this.richTextBox1.AppendText(SystemInformation.ComputerName+"\n");
            IDictionary environmentVariables = Environment.GetEnvironmentVariables();
            foreach (DictionaryEntry de in environmentVariables)
            {
                this.richTextBox1.AppendText(de.Key + "=" + de.Value+"\n");
            }
            String[] drives = Environment.GetLogicalDrives();
            this.richTextBox1.AppendText("本机磁盘驱动器: " + String.Join(", ", drives));
        }
    }
}
